<{include file="scenter/block/header.html"}>

<div class="ucenter_c">
<form action="<{link ctl='scenter/weixin/addon/help:create'}>" mini-form="ucenter" method="post" ENCTYPE="multipart/form-data">
<table width="100%" border="0" cellspacing="0" class="table-data form">
<tr><th>关键词：</th><td><input type="text" name="data[keyword]" value="<{$detail.keyword|default:''}>" class="input w-300"/></td></tr>
<tr><th>标题：</th><td><input type="text" name="data[title]" value="<{$detail.title|default:''}>" class="input w-300"/></td></tr>
<tr><th>封面简介：</th><td><textarea name="data[intro]" class="textarea"><{$detail.intro}></textarea></td></tr>
<tr><th>封面图片：</th><td><input type="text" name="data[photo]" value="<{$detail.photo}>" <{if $detail.photo}>photo="<{$pager.img}>/<{$detail.photo}>"<{/if}> class="input w-300" />&nbsp;&nbsp;&nbsp;<input type="file" name="data[photo]" class="input w-100" /></td></tr>
<tr><th>开始时间：</th><td><input type="text" name="data[stime]" value="<{if $detail.stime}><{$detail.stime|format:'Y-m-d'}><{/if}>" class="input w-100" date="stime" readonly/></tr>
<tr><th>结束时间：</th><td><input type="text" name="data[ltime]" value="<{if $detail.ltime}><{$detail.ltime|format:'Y-m-d'}><{/if}>" class="input w-100" date="ltime" readonly/></td></tr>
<tr><th>使用说明：</th><td><textarea name="data[use_tips]" class="textarea"><{$detail.use_tips}></textarea></td></tr>
<tr><th>过期说明：</th><td><textarea name="data[end_tips]" class="textarea"><{$detail.end_tips}></textarea></td></tr>
<tr>
	<th>粉丝状态</th>
	<td>
	<ul class="group-list">
        	<label><input type="radio" name="data[follower_condtion]" checked="checked" value="1"/>关注</label>&nbsp;&nbsp;
            <label><input type="radio" name="data[follower_condtion]" value="0"/>不关注</label>
        </li>
		<div class="clear-both"></div>
	</ul>
	</td>
</tr>

<tr>
	<th>会员要求</th>
	<td>
	<ul class="group-list">
        	<label><input type="radio" name="data[member_condtion]" checked="checked" value="1"/>关注</label>&nbsp;&nbsp;
            <label><input type="radio" name="data[member_condtion]" value="0"/>不关注</label>
        </li>
		<div class="clear-both"></div>
	</ul>
	</td>
</tr>
<tr><th>浏览人数：</th><td><input type="text" name="data[views]" value="<{$detail.views|default:''}>" class="input w-100"/><span class="tip-comment">浏览人数</span></td></tr>
<tr><th>过期提示图片：</th><td><input type="text" name="data[end_photo]" value="<{$detail.end_photo}>" <{if $detail.end_photo}>photo="<{$pager.img}>/<{$detail.end_photo}>"<{/if}> class="input w-300" />&nbsp;&nbsp;&nbsp;<input type="file" name="data[end_photo]" class="input w-100" /><span class="tip-comment">过期提示图片</span></td></tr>
    <tr><th></th><td><input type="submit" value="保存" class="green_btn" /></td></tr>
</table>
</form>
</div>
<script type="text/javascript">
(function(K, $){
$("input[name='data[type]']").click(function(){
    $("tr[wxtype]").hide();
    $("tr[wxtype='"+$(this).val()+"']").show();
});
$("#weixin_reply_btn").click(function(e){
    e.stopPropagation(); e.preventDefault();
    var link = $(this).attr("action") || $(this).attr("href");
    Widget.Dialog.Select(link, 'N', function(ret){
        $("#weixin_reply_id").val(ret[0]);
        $("#weixin_reply_title").html(ret[1].title);
        $("#weixin_reply_photo").attr("src", "<{$pager.img}>/"+ret[1].photo);
        $(".weixin-preview").show();
    }, {title:"选择微信素材",width:720});
});
})(window.KT, window.jQuery);
</script>
<script type="text/javascript" src="<{$pager.res}>/script/widget.bmap.js"></script>
<script type="text/javascript" src="<{$pager.res}>/kindeditor/kindeditor.js"></script>
<script type="text/javascript">
(function(K, $){
var editor = KindEditor.create('textarea[kindeditor]',{uploadJson : '?magic/upload-editor.html', extraFileUploadParams:{OATOKEN:"<{$OATOKEN}>"}});
})(window.KT, window.jQuery);
</script>
<{include file="scenter/block/footer.html"}>